package com.mrjy.maintain.dao;

import java.util.List;

import com.mrjy.common.entity.NewsInfo;

public interface INewsInfoDao {

	//分页查询
	List<NewsInfo> queryPageNewsInfo(NewsInfo newsInfo);
	
	//查询新闻类型
	List<NewsInfo> queryNewsTypeList();
			
	//统计
	int countNewsInfo(NewsInfo newsInfo);
			
	//添加
	int insert(NewsInfo newsInfo);
			
	//根据Id查找
	NewsInfo queryById(int id);
			
	//根据ID修改
	int updateById(NewsInfo newsInfo);
				
	//根据ID删除
	int deleteByIds(int[] ids);
				
	//根据ID禁用、起用
	int updateDisableFlag(NewsInfo newsInfo);	
	
}
